
import java.awt.Point;

public class UnitJet extends Unit{

	public UnitJet(Point coord, Integer s) {
		super(coord, s);	// Call super class's constructor

		unitTypeID = Unit.UNIT_TYPE_ID_JET;
		unitName = "Jet";
		unitDescription = "Major sky force of mordern war. It's free to move every way on the field.";
		hitPoint = remainingHitPoint = 80; // example hitpoint
		attackPower = 50; // example attackPowe
		motionPoint = 13; // example motionPoint
		/*
		 * Set attackable area
		 */
		rltAttackableArea.add(new Point(1, 0));
		rltAttackableArea.add(new Point(0, 1));
		rltAttackableArea.add(new Point(-1, 0));
		rltAttackableArea.add(new Point(0, -1));	
		
		
		/*
		 * Load unit images
		 */
		if(side == Unit.UNIT_SIDE_ID_USER1) {
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_1_UP));
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_1_DOWN));
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_1_LEFT));
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_1_RIGHT));
		}
		else {
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_2_UP));
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_2_DOWN));
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_2_LEFT));
			addUnitImage(WorldWar.imageLoader.getImageByName(ImageStructure.IMAGE_NAME_UNIT_JET_2_RIGHT));
		}
		
		/*
		 * Set original block image
		 */
		setUnitImageIndex(0);
	}
}
